Expanded the dbcheck routine ready for the other databases