Wrapped database open commands with detailed error handling messages.