Added ability to edit records in the DB.