Changed name from RecordHandler to Database and moved all object
modifying code there.