changed User to AppUser to void reserved word in postgres