Simple cgi script written in C using sqlite to store and display links