Handles update of existing DB records. Added timestamp