added MockDatabase

added MockDatabase and added sendToDatabase(mockDatabase db) method to
Indexer class