Neg time bug

Fixed locations where negative time  could occur, another bug was caused in the yaml by the result being of Types.OTHER which caused a null pointer exception, this was taken care of in the JDBC adapter