squashed a bug in the Database connection