fixing database configuration and ruby version configuration