Added a DBConnector class - ee9006760d13e9e4eecf6a8f3e6b9f962db7a63d

This was a class I wrote few weeks back, when I was trying to create a DBConnectionFactory. Most of the code in the class has been gleaned from various sources on the internet, it would be kind of you to provide feedback on this.