use memory database till fix for local