The Wrong Way
Is not really wrong, just quick and dirty.
Each database backend needs to be maintained separately.
A good example is
phpBB
.
Porting should be fairly quick.