Detect missing database during initialization

A missing database was not properly detected; now this error results in an
appropriate response to the client.