fix nil widgets and add sqlite3 gem for development