Fixed connection error + added code to display users

Added code to index page to add users, and fixed db connection issue