Prevents unnecessary database errors.

In the Database class database connection was removed from the
constructor so unnecessary errors don't occur. (Not sure why I did that
in the first place...)