add function & procedure to db, chane userids to uuids