moved functions into common/client/server tables