Bug fix: cannot have multiple DB connections going at any one time