Fix dbh code
Code to get namespaces from db