Some database stuff.