added devise gem and fixed db errors