added small sql wrapper and some comments
Working on new patient redirection and user-signup-type