fixed minor db issue