Database problems are math problems too.