[WIP]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
- [ ] 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
- [ ] Use `DATABASE_SERVICE_HOST` instead of hack
better to keep it all ruby so we can move it to STI soon.