Moves database initialization into seperate module