refact jdbc dialects