fix cannot upload database bug