[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. 
For simplicity reasons I remove the if, it was troublesome to take that in consideration. I'm thinking about how to handle both situations.