Removed debug prints and made dbconn an instance variable