Fixed OmniAuth to work with databases