[IMP] Removed http param 'db' handling from http.py and put it in the main controller in main.py
Some more correction to always have the db in the url
[IMP] Simplified db detection by removing 'db' http parameter handling in http.py to put it in main.py