fix db issue and delete file.js