Should use proper abstraction instead of switching on DBMS type.