Made everything correct, drop temp tables