fix db in uploads init