Added basic logic to load dice from database.