Fixed IO issues; SqlLite conn needs to be open;