added server side code for answers and votes in user document