There are a number of different database errors, we should probably separate them.