further work on embedded database