dice generator works, db access