added devise auth and update db settings