Fixed error in Database class.

No big deal, just fixed an error in the database class, just stupid
errors made the night before, just what happens late at night.