added generic object class and database class