In config.properties, instead of declaring the name of the database (ie database test: JdbcUrl=jdbc:mysql://127.0.0.1/test?characterEncoding=utf8), don't write any name:
JdbcUrl=jdbc:mysql://127.0.0.1?characterEncoding=utf8 'I've deleted /test
Then, in your sql, you have to give your database name and table, instead of just the table:
ie:
sql.selectTest = select * from test.table1
sql.selectDB2 = select * from db2.table1