Updated code to use the connection pool
Added property for controlling number of db conn and added minor touchups to the properties class
Fixed null pointer exception