Upload+Update database

properly updates database when a file is uploaded