fix db migrations, add devise gem