Removed order by from delete query because it was causing Oracle query to fail.
Added getTable query to resolve schema issues of table names in sql statements.