prepare to update the database - final db