make sure errors codes arent too long for mysql