Update database and test