Simple SQL / PHP5 convector