Embedded wrapper and throw error-message if there is no connection to host or no database available.