transition to MySQLdb and basic (untested) serversocket