Add query from DB