Added getDb() to ActiveRecordInterface in order for BaseActiveRecord to have stricter contract