Add SQLite support and add missing constructor