added addRecordClass method for db service