Rewrote connection data handling, removed all usage of the db classes for now