supporting database type setting instead of fixed mysql