added ability to run database in same jvm