Unifying SQLTable code and different backends