Avoided m_database in BaseSqlTableModel.