Add support for automatic database initialization/updates and custom …