added more generic handling of sqldialects to core-db