DB reset bugfix

also fixes the problem with db:migrate