Moved query path to routing class
Moved the database config to the database class
Updated database and install initialization