hooked up detail panel to db