Initial stab at SQL database support through scalability framework. Still needs testing.