Consume me like a fire

sql.getErrMsg database calls were off by one for these three instances.