ensure one db handle across classes