Appears to be working fine for now, works in two separate databases I've tried it with, testing needed though