fixed code to get db name and added stable id event handlers
fixed code to get db name and added stable id event handlers

Ensembl/ensembl-webcode,Ensembl/ensembl-webcode,Ensembl/ensembl-webcode,Ensembl/ensembl-webcode,Ensembl/ensembl-webcode