ShiHeng's sql cookie management.(libraries)