Merged active record, query builder and collection classes