devise before db