added DBConnector class to use for querying the database.