Update DataBase code