add ToBackendKey typeclass

This is needed to implement generic conversion functions
such as toSqlKey for SQL and keyToOid for MongoDB
So the IsSqlKey typeclass was removed,
but the functionality is still there