fix(sql): fix case sentry indexes in postgres und oracle

related to #CAM-2373