base function.with sql support
not key process.
ready to rewrite panel_item (without ui,hard code for speed)