Removed depricated methods and used the latest 1.6 features of orientdb