Add stored procedure for copying entries