add database migration support