moved db to migrations