add db_columns='pid' in Appstatistics Model's pid column