Last update for db functions.