Fixed a database connectivity bug.