Moved RPC out of constructor and moved database initialization into the
FakeDatabase class.

Loading of apparatus is fixed does not create duplicates