db library fix