modify the lib and db