Add in logging of debug timing info. Move some sql queries to top so commit all happens at the end
Add in logging of debug timing info. Move some sql queries to top so commit all happens at the end

hammertoe/didactic-spork,hammertoe/didactic-spork,hammertoe/didactic-spork,hammertoe/didactic-spork