put in the foundation for entity_stats
added new sql files and started on the stats header
got the basic functions for stats done