Refactored DatabaseConnection

Changed a "==" to a ".equals()" because we're comparing objects not
primative data types.