Fixes #15; initiliazes conn to db