implemented function to get random objects from database
added test function to check ObjectDb::get_random_objects()