FIxed issues on using OrientDB on different threads. Created a new THREAD_MODE (by default to AUTOSET_IFNULL)