[FIX] fixed quer in databaseadapter