WIP: [feature/sqlite3] Support for sqlite3

I have tried to add support for sqlite3 by analysing the mod "Support of SQLite 3.0+" by Boris Berdichevski. 

http://tracker.phpbb.com/browse/PHPBB3-9728