dynamically load sqlite3 library if enabled in config. Solves issue #6.