fixing database libraries