Updated pdata/mysql things