added devise for user interaction, created db