updated control panel for reading sql data