database example works