set up database and add devise