add setup function and cmd line parser
change sql magic string