fix(sql): fix type in postgresql HistoricCaseInstance scripts

related to #CAM-2839
chore(engine): ensure that no empty string is test with LIKE on oracle

related to #CAM-2839
fix(engine): remove JodaTime from test cause of old wls version

related to #CAM-2839