Create and show database objects in when running the app

This is a first draft and it's not working, opened the PR just to see changes for future development. 

### TODOs
- [x] Replace raw mysql ping with a retry mechanism in ruby, example: https://stackoverflow.com/questions/9473957/at-what-point-does-activerecord-actually-connect-to-the-database
- [x] Use `DATABASE_SERVICE_HOST` instead of hack