Finished client_std() SQL function, also takes care of access