Added capability to use adapter for different DB