Linking db initialization to server startup