Update Function added and check_services re-code

Update function has been added however still needs work also the
check_services function is using a similar method to the login.cs form:
IF null then create a new record, else do update then create a new
record.