perl add link algo is ready. Need modify all sqlite_(add|check) functions and create some prototype.