Sqlite support

Removes rowCount() usage in select queries which does not work for all database backends. Also adds a sqlite scheme for database creation.
Changes only cover code covered by blog import and blog display functionality yet.