This is an old system, written in the depreciated mysql_* functions