Run migrations when using sqlite

Fixes the issue when migrations are not run on sqlite
since it did not emit any refresh notification.