Some updates to the database stuff.