[BUGFIX] Superfluous SQL queries on copying records