Added DataSource for persistent database connections. Some refactoring.
Added DataSource for persistent database connections. Some refactoring.