stored procedures and work on migrations