Set ruby version matching rbenv

add dotenv and review database.yml for pg

Add missing test env variables