Add database functions.