Add SQL helper functions
Use helper function in CREATE-USER