implemented singleton for the the databaseInterface and moved resultset processing to the database interface.