Renamed some db functions.