Move database-related utilities to their own class.
Add experimental database schema update functionality.