Move remaining code from JDatabase to JDatabaseDriver. #1158

Merged
merged 2 commits into from Apr 17, 2012