fixed whitespace
fixed backticking for identifiers (table,columns)
Fixed Database::query(), added convenience function and ported getLevelByIdReq