fix in_memory_database bug and fixtures/_item