Database Connection Class Added

Added a class through wich database connections are managed.