Add registry to get dbconnection