Fixed rails to DB issues.. updated rails to 4.0.2.. and fixed devise