fixed db, migrations work