Database dialect interface restructure