updated to new database example