better sqlite /  mysql support refs #1