Stat Allocation functional. SQL file added.

Some scripts culled as well.