switched connect() in Database to boolean