checking db connection for assets:precompile when deploy to heroku