* Dont delete pack stats before inserting new ones to prevent deadlocks * Remove fk for scheduled_query_stats * Remove fk removal * Fix tests * Remove unneeded comment