Will now automatically create oredata table if it doesn't exist already. Fixed deprecated code.