Currently not working due to scoping issues, rather than keep fiddling I'm going to move onto the next build with mongoose