[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
can you create a method `database_ready?` and put this statement there? then you will have:

```
while not database_ready? do
end
```

which is much more readable ;-)