changing for synchronization,
added methods into interface DatabaseExecutor,
implemented methods in MockDatabaseExecutor