configuring database connection using environment variable RAILS_APP_DB
fixing errors in app_init to connect to database
fixing database connection issue
adding production to database setup