fixing local db issue