Added support for SQLite and multiple fetch methods