Initial wrappers to open/close db