updated defineFromDatabase method and created loop to create instances of mix from database