Merge QueryExecutor into Database.