Extend queries and migrations on mapper