tests: *.sql moved to subfolder files
Database: fixed SqlBuilder.parseJoins() test