setup db and migrations