[FIX] queries to database