correcting db issue