Optimize UserVersionsDAO

Remove unneeded extra query by passing in the User object