Testing db functions.