added sqlite and mysql support