Refactor DB provider, to allow pluggable RDBMS services