fixing local DB