added embedded derby DB and test for it