Added router functionality and temporarily added a manual require on the databaes config.