add db lib and more files