[server][testDBClientHatohol] Unify duplicated code by template