updated user controller and user controller tests
updated connection and added static user methods