New "Update record" function

Added an “update record”. A few extra helper function