Mysql2::Error: Deadlock found when trying to get lock; try restarting transaction: COMMIT