Basic initialisation functionality, database connection and router setup