Sending data from connectport x4 to a database using python

Hey,
I am new to python. I am actually trying to send data received on my connectport x4 to a database. I found a piece of code that updates a field in my database, however it required a module mysqldb which is not a default module. How do I proceed ??
I tried searching on the net, but i found some very complicated procedures…

Is it really necessary to speak directly to the database? It might be safer, better and easier to speak with a server frontend to the database, using e.g. a php/python/perl/ruby script. In that way you can have a web standard way to talk to a database and you are less dependent on the type of database driver you need on the small and embedded ConnectPort. It is also easier to use ssl encryption this way, securing your data.

Axel Roest