Rewritten DB record functions for more convenience.