Replace migration and dbdrop code