removed redundant sqlite connection