Some starter database open/close code.