fix #100
implement #101, #94, implement nice table output for imglist
mysql lib cleanup