added memory and local_db to instance