Changed the order of the configs, now the db is loaded before the routes configuration