Adding more db functions.