check db type to render 'begin' correctly