add migration and default configuration for database