Fixed processor API
Database: Added Collection.toQuery
Database: Added Database.Query