Problems with the SQL statement

All the updates in this commit are about issues with the SQL statements
to get the UNIPROT ids.