Use the id to identify entries from the database

This PR uses the new id to uniquely identify superpixies, rather than the url