Fix retrieving of relations by removing unneeded quote()

Relations were broken because of and unneeded quote() being used with a prepared statement.