fixed typos in db_insert_pdata