Update dbhelper, added mediadirectories