fixed wrong replace executing SQL on multiuser accounts