Updated class to connect to database
User is automatically started