Dao cleanup

Deleted unnecessary includes.

Moved process of creating temp table inside transaction in `trackdao.cpp`