Edits to database handling.