Database Function Update 3

register function created for John