afavia changes 

added some additional db accessor funcs