converting db schema to migrations