decouple db-implementations add memory:// scheme

this pr will add the   memory:/// scheme