changes where clause in userserver and adds phantom render for pdf downloads