control panel db calls