Fixed name of db-table in a query