ws methods wrapping db