Db library improvement